<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Heroes Details</title>
    <!-- 引入Bulma CSS -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.3/css/bulma.min.css">
    <style>
        /* 如果需要额外的样式，可以在这里添加 */
    </style>
</head>
<body>
<section class="section">
    <div class="container">
        <h1 class="title">英雄详细信息</h1>

        <div class="content">
            <p><strong>英雄名称: </strong> <span th:text="${heroes.name}"></span></p>
            <p><strong>英雄描述: </strong> <span th:text="${heroes.description}"></span></p>
        </div>

        <h2 class="title is-4">技能列表</h2>
        <div class="columns is-multiline">
            <div th:each="skill : ${skills}" class="column is-one-third">
                <div class="card">
                    <div class="card-content">
                        <div class="media">
                            <div class="media-content">
                                <h2 class="title is-5">技能名称: <span th:text="${skill.skillName}"></span></h2>
                                <p><strong>英雄Id:</strong> <span th:text="${skill.heroId}"></span></p>
                                <p><strong>描述:</strong> <span th:text="${skill.skillDescription}"></span></p>
                                <p><strong>类型:</strong> <span th:text="${skill.skillType}"></span></p>
                                <p><strong>冷却时间:</strong> <span th:text="${skill.skillCooldown}"></span> 秒</p>
                                <p><strong>范围:</strong> <span th:text="${skill.skillRange}"></span></p>
                                <p><strong>伤害:</strong> <span th:text="${skill.skillDamage}"></span></p>
                            </div>
                        </div>

                        <div class="card-footer">
                            <a th:href="@{'/skills/update/' + ${skill.skillId}}" class="card-footer-item">更新</a>
                            <form th:action="@{/skills/delete/{id}(id=${skill.skillId})}" method="post" class="card-footer-item">
                                <button type="submit" class="button is-danger">删除</button>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
</body>
</html>


